package cn.net.yugu.doraemon.api.common.model;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 应用内部服务间需要传递异常信息的 DTO
 *
 * @author xiangzr
 * @version 2023/08/01 20:44:28:28
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServiceResult<T> implements Serializable {

    private Integer code;
    private String message;

    private T data;

    private Throwable throwable;
}
